<?php
/**
 * the site resource loads the XML site tree into a Dig_Tree
 * and then registers the tree with Digitalus Core
 *
 */
class Dig_Application_Resource_Site extends Zend_Application_Resource_ResourceAbstract
{
    public function init ()
    {
        $options = $this->getOptions();
        // set the site tree
        $tree = new Dig_Tree($options['pathToTree']);
        Dig_Core::setParam('site_tree', $tree);
        return $tree;
    }
}

